<?php
$baseUrl = Yii::app()->baseUrl;
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile($baseUrl.'/js/Treeview/jquery/jquery.js');
$cs->registerScriptFile($baseUrl.'/js/setting-account.js');
?>
<div style="display: block;" class="settings_box">
<div class="section">
<h2>Change Password <a id="settings_changePassword"
	class="help_link qtip" href="#settings" target="_blank"></a></h2>
<form action="#" method="POST" id="changepasswordform"
	class="form long-labels">
<ol>
	<li><label for="oldPassword">Enter old password</label> <input
		class="required" name="oldPassword" type="password"> <label
		for="oldPassword">&nbsp;<strong><a href="#resetpassword?command=clean">Don't
	know it? Reset it first.</a></strong></label>
	<div class="errorMessage hidden">Password is incorrect.</div>	
	</li>

	<li><label for="password">Choose a new password</label> <input
		class="required" id="password" name="password" type="password"></li>
	<li><label for="passwordConfirm">Re-enter new password</label> <input
		id="passwordConfirm" class="required" name="passwordConfirm"
		type="password">
		<div class="errorMessage hidden">Password is not match.</div>
</li>
	<li class="submit">
	<div class="button"><input id="changePasswordButton" name="continue"
		value="Change Password" type="submit"></div>
	</li>
</ol>
<input type="hidden" value="<?php echo Yii::app()->user->id;?>" name="userId" id="userId">
</form>
</div>
<div class="section secondaryLogin">
<h2>Secondary Logins <a id="settings_secondary" class="help_link qtip"
	href="#settings#secondary" target="_blank"></a></h2>
<div class="floatWrapper">
<div id="add_login" class="button floatLeft marginBottom"><a>Add
Secondary Login</a></div>
</div>


<div id="loginTableContainer">
<table class="display narrow" id="settings_loginTable" border="0"
	cellpadding="0" cellspacing="1">
	<thead>
		<tr>
			<th class="site sorting">Site</th>
			<th class="address sorting">Address</th>
			<th class="type sorting_asc">Type</th>
			<th class="addressActions  sorting_disabled"></th>
		</tr>
	</thead>
	<tbody>
		<tr id="settings_loginTable_expensify.com" class="odd">
			<td>expensify.com</td>
			<td>bthiep148@gmail.com</td>
			<td>primary</td>
			<td></td>
		</tr>
	</tbody>
</table>
</div>
</div>


<div class="section">
<h2>Merge Accounts <a id="settings_merge" class="help_link qtip"
	href="#settings#merge" target="_blank"></a></h2>

<form id="mergeform" action="user" method="POST"
	class="form long-labels">
<ol>
	<li><label for="from">Account email to merge <i>into</i></label> <input
		disabled="disabled" value="bthiep148@gmail.com" type="text"></li>
	<li><label for="email">Account email to merge <i>from</i></label> <input
		class="required" name="managerEmail" id="email" type="text"></li>
	<li><label for="password">That account's password</label> <input
		class="required" name="password" type="password"></li>
	<li class="checkbox"><input id="merge_accounts_confirm" name="confirm"
		value="true" class="required" type="checkbox"> <label
		for="merge_accounts_confirm">Yes, I understand this is not reversible.</label>
	</li>
	<input name="action" value="merge" type="hidden">
	<input name="csrfToken"
		value="9D8FB667CA30ADEA4CABE34CC51F20E3848237567C868E3288E75F917439B9F87DE8D0A93E27E1E095394CC9C04548D981611C5B73B81CBBC9E9C0CF11EA77B41F63412239AFD66FD296EC4C33C64B0D7BAB2937478DDB906DF712FA9734D5E84192A7945A62EEB5B8F927B8D84AF168"
		type="hidden">
	<li class="submit">
	<div id="merge_accounts_button" class="button disabled"><input
		onclick="return onMerge();" value="Merge Accounts" type="submit"></div>
	</li>
</ol>
</form>
</div>

<div class="section last">
<h2>Delete Account <a id="settings_delete" class="help_link qtip"
	href="#settings#delete" target="_blank"></a></h2>

<form action="user" method="POST" class="form long-labels">
<ol>
	<li><label for="message">We'd hate to see you go. Would you kindly tell
	us why, so we can improve?</label> <textarea cols="40" rows="3"
		id="deletemessage" name="message" alt=""></textarea></li>
	<li class="checkbox"><input id="deleteconfirm" name="confirm"
		value="true" type="checkbox"> <label for="deleteconfirm">Yes, I
	understand this is not reversible.</label></li>
	<li class="submit">
	<div id="deletesubmit" class="button delete disabled"><input
		onclick="return onDelete();" name="submit" value="Delete my Account"
		type="submit"></div>
	</li>
	<input name="csrfToken"
		value="9D8FB667CA30ADEA4CABE34CC51F20E3848237567C868E3288E75F917439B9F87DE8D0A93E27E1E095394CC9C04548D981611C5B73B81CBBC9E9C0CF11EA77B41F63412239AFD66FD296EC4C33C64B0D7BAB2937478DDB906DF712FA9734D5E84192A7945A62EEB5B8F927B8D84AF168"
		type="hidden">
</ol>
</form>
</div>
</div>
